Template Codes
  

The following data tags can be used to customize the look of the Weather Watcher forecast skins. You'll find the skins in the following location:

C:\Program Files\Weather Watcher\Skins

The data tags can also be used to customize the data that is displayed in the Export and Log features. Those features can be setup in the "Export" and "Log" tabs of the Weather Watcher Options window.

Unfortunately, there aren't detailed instructions regarding this process, but you should be able to figure the process out if you have a basic understanding of HTML and take a few minutes to look through the *.WTP template files in the "C:\Program Files\Weather Watcher\Skins\Forecasts" folder.

The following codes can be used in all of the .WTP template files:


Current Data Tags:

[ALERT ID] = 80981|77316
[ALERTS AVAILABLE] = False
[ALERTS COUNT] = N/A
[ALERTS SOUND] = C:\Program Files\Weather Watcher\(None)
[ALERTS SOUND ESC] = C:\\Program Files\\Weather Watcher\(None)
[ALERTS SOUND SLASH] = C:/Program Files/Weather Watcher/(None)
[BAROMETER] = 753.6 mm and steady
[BAROMETER PLAIN] = 753.6
[BAROMETER PLAIN NOT CONVERTED] = 29.67
[CODE] = USPA0679
[CONDITION] = Cloudy and Windy
[DATE] = 4/3/2006
[DEW] = 8°C
[DEW PLAIN] = 8
[DEW PLAIN NOT CONVERTED] = 47
[DEW RETURN] = 8°C<BR>
[DEW PARENS] = 8°C
[DOWNLOADED DATETIME] = 4/3/2006 10:37:32 PM
[FEELS] = 10°C
[FEELS PLAIN] = 10
[FEELS PLAIN NOT CONVERTED] = 50
[FEELS RETURN] = 10°C<BR>
[FEELS PARENS] = 10°C
[HUMIDITY] = 89%
[HUMIDITY PLAIN] = 89
[HUMIDITY PLAIN NOT CONVERTED] = 89
[ICON] = http://image.weather.com/web/common/wxicons/52/26.gif
[LOCATION] = Harrisburg, PA
[MOON] = Waxing Crescent
[MOON ICON] = http://image.weather.com/web/common/moonicons/52/6.gif
[SEVERE ALERT] =
[SUNRISE] = 6:48
[SUNRISE AMPM] = 6:48 AM
[SUNSET] = 7:34
[SUNSET AMPM] = 7:34 PM
[TEMP] = 10°C
[TEMP PLAIN] = 10
[TEMP PLAIN NOT CONVERTED] = 50
[TEMP RETURN] = 10°C<BR>
[TEMP PARENS] = 10°C
[TEMP HIGH] = 10°C
[TEMP HIGH PLAIN] = 10
[TEMP HIGH PLAIN NOT CONVERTED] = 50
[TEMP HIGH RETURN] = 10°C<BR>
[TEMP HIGH PARENS] = 10°C
[TEMP LOW] = 10°C
[TEMP LOW PLAIN] = 10
[TEMP LOW PLAIN NOT CONVERTED] = 50
[TEMP LOW RETURN] = 10°C<BR>
[TEMP LOW PARENS] = 10°C
[TIME] = 10:37:32 PM
[UPDATED] = Observed Monday, April 3 @ 10:25 PM EDT @ T74002111
Downloaded Monday, April 3 @ 10:37 PM
[UPDATED DATETIME] = 4/3/06 10:25 PM EDT
[UV] = 0 Low
[UV PLAIN] = 0
[VISIBILITY] = 4.0 miles
[VISIBILITY PLAIN] = 4.0
[VISIBILITY PLAIN NOT CONVERTED] = 4.0
[WIND FULL] = NNE 11 km/h
[WIND] = 11 km/h
[WIND PLAIN] = 11
[WIND PLAIN NOT CONVERTED] = 7
[WIND NO DIRECTION] = 11 km/h
[WIND NO GUST] = NNE 11 km/h
[WIND DIRECTION] = NNE
[WIND GUST] = N/A
[WIND GUST PLAIN] = N/A


Hourly Data Tags:

[HOURLY CONDITION] = Rain
[HOURLY DAY] = Monday
[HOURLY DAY ABBREV] = Mon
[HOURLY DEW] = 8°C
[HOURLY DEW RETURN] = 8°C<BR>
[HOURLY DEW PARENS] = 8°C
[HOURLY FEELS] = 10°C
[HOURLY FEELS RETURN] = 10°C<BR>
[HOURLY FEELS PARENS] = 10°C
[HOURLY HOUR] = 11 PM
[HOURLY HUMIDITY] = 69%
[HOURLY ICON] = http://image.weather.com/web/common/wxicons/52/12.gif
[HOURLY PRECIPITATION] = 60%
[HOURLY TEMP] = 10°C
[HOURLY TEMP RETURN] = 10°C<BR>
[HOURLY TEMP PARENS] = 10°C
[HOURLY WIND FULL] = W 3 km/h
[HOURLY WIND] = 3 km/h
[HOURLY WIND PLAIN] = 3
[HOURLY WIND NO DIRECTION] = 3 km/h
[HOURLY WIND NO GUST] = W 3 km/h
[HOURLY WIND DIRECTION] = W
[HOURLY WIND DIRECTION IMAGE] = W

Daily Data Tags:

[DAILY CONDITION DAY] = Cloudy
[DAILY CONDITION NIGHT] = Rain
[DAILY DATE] = Apr 3
[DAILY DAY] = Monday
[DAILY DAY ABBREV] = Mon
[DAILY HI] = 6°C
[DAILY HI RETURN] = 6°C<BR>
[DAILY HI PARENS] = 6°C
[DAILY HUMIDITY DAY] = 70%
[DAILY HUMIDITY NIGHT] = 64%
[DAILY ICON DAY] = http://image.weather.com/web/common/wxicons/52/44.gif
[DAILY ICON NIGHT] = http://image.weather.com/web/common/wxicons/52/12.gif
[DAILY LO] = 6°C
[DAILY LO RETURN] = 6°C<BR>
[DAILY LO PARENS] = 6°C
[DAILY PRECIPITATION DAY] = 70%
[DAILY PRECIPITATION NIGHT] = 70%
[DAILY SUNRISE] = 6:48
[DAILY SUNRISE AMPM] = 6:48 AM
[DAILY SUNSET] = 7:34
[DAILY SUNSET AMPM] = 7:34 PM
[DAILY WIND FULL DAY] = W 27 km/h
[DAILY WIND DAY] = 27 km/h
[DAILY WIND PLAIN DAY] = 27
[DAILY WIND NO DIRECTION DAY] = N/A
[DAILY WIND NO GUST DAY] = N/A
[DAILY WIND FULL NIGHT] = W 27 km/h
[DAILY WIND NIGHT] = 27 km/h
[DAILY WIND PLAIN NIGHT] = 27
[DAILY WIND NO DIRECTION NIGHT] = 27 km/h
[DAILY WIND NO GUST NIGHT] = W 27 km/h
[DAILY WIND DIRECTION DAY] = NNW
[DAILY WIND DIRECTION NIGHT] = W
          

Detailed Data Tags:

[DETAILED DATE] = Apr 3
[DETAILED DAY] = Monday Night
[DETAILED DAY ABBREV] = Mon
[DETAILED FORECAST] = Occasional rain tapering to a few showers late.  Low 6°C. W winds at 8 km/h to 16 km/h, increasing to 15 to 40 km/h.  Chance of rain 70%. Rainfall around a quarter of 2.5 cm.


Miscellaneous Tags:

[INSTALL LOCATION] = C:\Program Files\Weather Watcher
[INSTALL LOCATION ESC] = C:\\Program Files\\Weather Watcher
[INSTALL LOCATION SLASH] = C:/Program Files/Weather Watcher
[SKIN FORECASTS] = Splendid
[SKIN ICONS] = Splendid


Additional Log-Only Tags:

[CRLF]
[TAB]


When using the Hourly, Daily or Detailed tags, you must use them inside of a loop structure. See the following example for the loop structure syntax:

[HOURLY LOOP COUNT=5]
     [TEMPLATE]
          Day: [HOURLY DAY]
          Condition: [HOURLY CONDITION]
     [/TEMPLATE]
[/HOURLY LOOP]


Or, use multiple [TEMPLATE] tags to alternate row colors.

[HOURLY LOOP COUNT=5]
     [TEMPLATE]
          Day: [HOURLY DAY]
          Condition: [HOURLY CONDITION]             
     [/TEMPLATE]
     [TEMPLATE]
          Day: [HOURLY DAY]
          Condition: [HOURLY CONDITION]
     [/TEMPLATE]
[/HOURLY LOOP]


In the above examples, the Day Name and Condition will be printed for the next 5 hours. To print all of the available hours, use a "*" in place of the "5".

[HOURLY LOOP COUNT=*]
     [TEMPLATE]
          Day: [HOURLY DAY]
          Condition: [HOURLY CONDITION]
     [/TEMPLATE]
[/HOURLY LOOP]


The Daily and Detailed data can be looped using a similar syntax.

[DAILY LOOP COUNT=5]
     [TEMPLATE]
          [DAILY DAY]
          [DAILY CONDITION DAY]
     [/TEMPLATE]
[/DAILY LOOP]

[DETAILED LOOP COUNT=5]
     [TEMPLATE]
          [DETAILED DAY]
          [DETAILED FORECAST]
     [/TEMPLATE]
[/DETAILED LOOP]


You can use the optional [START] tag to specify which item to print first. To print the next 7 days starting tomorrow, set the [START] tag to "2".

[DAILY LOOP COUNT=7 START=2]
     [TEMPLATE]
          Day: [DAILY DAY]
          Condition: [DAILY CONDITION DAY]
     [/TEMPLATE]
[/DAILY LOOP]